how to repair the trust relationship between this workstation and the primary domain failed

Test-ComputerSecureChannel -verbose
Reset-ComputerMachinePassword
Remove-Computer -UnjoinDomainCredential (Get-Credential) -WorkgroupName TMP
Add-Computer -DomainName chenshi.net -Credential (Get-Credential)